package com.ruoyi.business.service;

import com.ruoyi.business.domain.Employee;
import com.ruoyi.business.domain.vo.EmployeeVo;
import com.ruoyi.business.domain.bo.EmployeeBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 员工Service接口
 *
 * @author ruoyi
 * @date 2023-06-21
 */
public interface IEmployeeService {

    /**
     * 查询员工
     */
    EmployeeVo queryById(Long id);

    /**
     * 查询员工列表
     */
    TableDataInfo<EmployeeVo> queryPageList(EmployeeBo bo, PageQuery pageQuery);

    /**
     * 查询员工列表
     */
    List<EmployeeVo> queryList(EmployeeBo bo);

    /**
     * 新增员工
     */
    Boolean insertByBo(EmployeeBo bo);

    /**
     * 修改员工
     */
    Boolean updateByBo(EmployeeBo bo);

    /**
     * 校验并批量删除员工信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
